<?php
/**
 * User: b179a9
 * Date: 9/26/11
 * Time: 8:09 PM
 */

class App_Plugin_Menu extends Zend_Controller_Plugin_Abstract
{

    function preDispatch($request)
    {
        $layout = Zend_Layout::getMvcInstance();

        $view = $layout->getView();

        $menuManager = new \Managers\Pages();
        $menu = $menuManager->getMenu();
        
        $view->menu = $menu;

    }

}
